// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** analyzeTecInterview POST /api/tec/interview/analyze */
export async function analyzeTecInterviewUsingPost(
  body: API.AnalyzeTecInterviewRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tec/interview/analyze', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** audioTecInterview GET /api/tec/interview/audio */
export async function audioTecInterviewUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.audioTecInterviewUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<any>('/api/tec/interview/audio', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getBodyAction POST /api/tec/interview/body/action */
export async function getBodyActionUsingPost(
  body: API.GetBodyActionRequest,
  options?: { [key: string]: any }
) {
  return request<any>('/api/tec/interview/body/action', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** cancelTecInterview GET /api/tec/interview/cancel */
export async function cancelTecInterviewUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.cancelTecInterviewUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tec/interview/cancel', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** deleteTecInterview GET /api/tec/interview/delete */
export async function deleteTecInterviewUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.deleteTecInterviewUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/tec/interview/delete', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getFaceAction POST /api/tec/interview/face/action */
export async function getFaceActionUsingPost(
  body: API.GetFaceActionRequest,
  options?: { [key: string]: any }
) {
  return request<any>('/api/tec/interview/face/action', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getFaceEmotion POST /api/tec/interview/face/emotion */
export async function getFaceEmotionUsingPost(
  body: API.GetFaceEmotionRequest,
  options?: { [key: string]: any }
) {
  return request<any>('/api/tec/interview/face/emotion', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** generateTecInterview POST /api/tec/interview/generate */
export async function generateTecInterviewUsingPost(
  body: API.InterviewGenerateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/tec/interview/generate', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getTecInterviewAnalyzeResult GET /api/tec/interview/get/analyzeResult */
export async function getTecInterviewAnalyzeResultUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTecInterviewAnalyzeResultUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseAiInterviewAnalyzeResult_>(
    '/api/tec/interview/get/analyzeResult',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  )
}

/** getTecInterviewList GET /api/tec/interview/get/user/tecInterview */
export async function getTecInterviewListUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseListAiInterview_>('/api/tec/interview/get/user/tecInterview', {
    method: 'GET',
    ...(options || {}),
  })
}
